<template>
    <el-select :size="size" :disabled="sDisabled" :value="value+''" @input="$emit('input', $event)" :placeholder="placeholder" clearable>
        <el-option  :label="data.paramKey" v-for="data in dataList" :key="data.paramValue" :value ="data.paramValue">{{data.paramKey}}</el-option>
    </el-select>
</template>
<script>
import { getDictDataList } from '@/utils'
export default {
  name: 'RenSelect',
  data () {
    return {
      dataList: getDictDataList(this.paramCode,this.paramType)
    }
  },
  props: {
    value: [Number, String],
    paramCode: String,
    placeholder: String,
	size: String,
	sDisabled: Boolean,
	paramType: String
  }
}
</script>
